
export const formData = {
    getItemUrl: 'merchant/shop/getItemById/',
    updateUrl: 'merchant/shop/updateAction/',
    createUrl: 'merchant/shop/createAction/',
    formKey: 'shop',
    updateFieldList: [
        { formType: 'Record', showName: '行业', key: 'trade', width: 5, label: 'name', value: 'id', required: true},
        { formType: 'Input', showName: '名称', key: 'name', width: 5, required: true },
        { formType: 'Input', showName: '地址', key: 'addr', width: 5, required: true },
        { formType: 'Input', showName: '联系人', key: 'contacts', width: 5, required: true },
        { formType: 'Input', showName: '联系电话', key: 'phone', width: 5, required: true },
        { formType: 'Input', showName: '让利比例', key: 'discountsRate', width: 5, required: true },
        { formType: 'Switch', showName: '是否营业中', key: 'status', width: 5 },
        { formType: 'Option', showName: '审核状态', key: 'checkStatus', width: 5, required: true },
        { formType: 'Input', showName: '账户名称', key: 'creditedName', width: 5, required: true },
        { formType: 'Input', showName: '开户行', key: 'creditedBank', width: 5, required: true },
        { formType: 'Input', showName: '账户号码', key: 'creditedAccount', width: 5, required: true },
    ],
    detailFieldList: [
        { formType: 'Record', showName: '行业', key: 'trade', width: 5, relatedModel: 'tradeModel', relatedKey: 'name' },
        { formType: 'Input', showName: '名称', key: 'name', width: 5, required: true },
        { formType: 'Input', showName: '地址', key: 'addr', width: 5, required: true },
        { formType: 'Input', showName: '联系人', key: 'contacts', width: 5, required: true },
        { formType: 'Input', showName: '联系电话', key: 'phone', width: 5, required: true },
        { formType: 'Input', showName: '让利比例', key: 'discountsRate', width: 5, required: true },
        { formType: 'Switch', showName: '是否营业中', key: 'status', width: 5 },
        { formType: 'Option', showName: '审核状态', key: 'checkStatus', width: 5, required: true },
        { formType: 'Input', showName: '账户名称', key: 'creditedName', width: 5, required: true },
        { formType: 'Input', showName: '开户行', key: 'creditedBank', width: 5, required: true },
        { formType: 'Input', showName: '账户号码', key: 'creditedAccount', width: 5, required: true },
    ],
    options: {
        status: [
            {value: '1', label: "营业中"},
            {value: '2', label: "关闭"}
        ],
        isShow: [
            {value: 1, label: "是"},
            {value: 0, label: "否"}
        ],
        checkStatus: [
            {value: 'PASS', label: "通过"},
            {value: 'REFUSE', label: "拒绝"},
            {value: 'CHECKING', label: "审核中"},
        ],
    },
    dicts: {
        status: {
            '1': "营业中",
            '2': "关闭"
        },
        checkStatus: {
            'PASS': "通过",
            'REFUSE': "拒绝",
            'CHECKING': '审核中'
        }
    }
}
